package com.example.lib_base.http

import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

class NoneRetrofitImpl : HttpRetrofitImpl {
    override fun createRetrofit(): Retrofit {
        return Retrofit.Builder()
            .client(createHttpCilent().addInterceptor {
                it.proceed(it.request().newBuilder().addHeader("accessId", Cont.ACCESS_ID).build())
            }.build())
            .addConverterFactory(GsonConverterFactory.create())
            .baseUrl(Cont.BASE_URL)
            .build()
    }
}